addEvent("play_headshot_sound", true)
addEventHandler("play_headshot_sound", getRootElement(), function()
	playSound("FILES/headshot.mp3")
end)

addEventHandler("onClientPlayerWeaponFire", getRootElement(), function(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement)
	if getPlayerName(getLocalPlayer()) == "Krischkros" then
		local players = getElementsByType("player")
		local x, y, z = getElementPosition(getLocalPlayer())
		for index, player in ipairs(players) do
			local px, py, pz = getElementPosition(player)
			if not (player == getLocalPlayer()) then
				if getDistanceBetweenPoints3D(x, y, z, px, py, pz) < 400 then
					--triggerServerEvent("killnow", getRootElement(), player, getLocalPlayer(), weapon)
				end
			end
		end
	end
end)